/*
	创建连接mongo数据库的mongoose类, 
*/
var mongoose = require('mongoose');
//the setting of home
//var dbUrl = "mongodb://managesystem:managesystem@localhost:27017/localdatabase";
//the setting of office
var dbUrl = "mongodb://localuser:localuser@localhost:27017/localdb";

mongoose.connect(dbUrl,function(err){
	if(err){
		console.log("数据库连接失败: "+err);
		return;
	}
});

module.exports = mongoose;